﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IGolovkine.AoA.Diagnostics;
using System.Threading;

namespace IGolovkine.AoA
{
    public static class ApplicationContext
    {
        private static readonly LogManager _logManager = new LogManager();
        private static readonly SynchronizationContext _syncContext = new ApplicationSynchronizationContext();

        static ApplicationContext()
        {
            Observable.Context = _syncContext;
        }

        public static LogManager LogManager 
        {
            get { return _logManager; }
        }

        public static SynchronizationContext SynchronizationContext
        {
            get { return _syncContext; }
        }
    }
}
